/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package stack;

/**
 *
 * @author USER
 */
public class Factory<E> {
    
   public Stacki<E> getStack(String entry) {
    // seleccion de la implementacion a utilizar:
	if (entry.equals("AL")) {
           return new Stackarraylist<E>();
       } //regresa ArrayList
	else {
           return new Stack<E>();
       } //regresa Vector
   }
}
